const express=require("express")
const cookieParser=require("cookie-parser")
const app=express()
const {getStoreDB}=require("./mongo")
const Const=require("./const_value")

const {verifyToken}=require("./token/token_verify")
const userRouter=require("./routes/user_routes")
const productRouter=require("./routes/products_routes")
app.use(express.static(path.join(__dirname,"..","public")))


app.use(verifyToken)
app.use()
app.use('/products', productRouter);

app.listen(3000, function (err) {
   if (err) {
       console.log(err);
       return;
   }
   console.log("服务器开启了")
});